using System;
using System.Collections.Generic;
using System.Web.Mvc;

namespace GameSite.Models
{
    public partial class ContactNote
    {

        public long ID { get; set; }

        public int? IsRead { get; set; }
        public int? IsDone { get; set; }

        public string Title { get; set; }
        public string Content { get; set; }

        public string CreateBy { get; set; }

        [HiddenInput(DisplayValue = true)]
        public DateTime CreateTime { get; set; }

        public DateTime? ReadTime { get; set; }
        public DateTime? DoneTime { get; set; }

        public string Mail { get; set; }
        public string ContactInfo { get; set; }

        public string DispCreateTime
        {
            get
            {
                return CreateTime.ToString("yyyy-MM-dd");
            }
        }

        public string DispReadTime
        {
            get
            {
                return ReadTime == null ? string.Empty : ReadTime.Value.ToString("yyyy-MM-dd");
            }
        }

        public string DispDoneTime
        {
            get
            {
                return DoneTime == null ? string.Empty : DoneTime.Value.ToString("yyyy-MM-dd");
            }
        }
    }
}
